{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "276d8a40",
   "metadata": {},
   "source": [
    " <img src=\"./picture/box1.png\" alt=\"Drawing\" style=\"width: 500px;\" align=\"left\"/>"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "15dafbe0",
   "metadata": {},
   "source": [
    "在目标检测的过程中会遇到很多的问题，其中一个就是当一个格子中含有两个目标的时候。例如上面的一个格子可能包含人或者车子。\n",
    "\n",
    "这个时候就要使用Anchor Boxes的方法了"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9191e4d3",
   "metadata": {},
   "source": [
    "上面的例子就是解决这个办法的：\n",
    "\n",
    "首先，这里由于两个box,左边的那个就是用于检测人的，右边的那个就是用于检测车子的，然后这个训练集的标签是包含了两个box的信息。"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a742d0f6",
   "metadata": {},
   "source": [
    "<img src=\"./picture/box2.png\" alt=\"Drawing\" style=\"width: 500px;\" align=\"left\"/>"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "cc9d99fe",
   "metadata": {},
   "source": [
    "这里进一步讲述了Anchor boxes的使用方法，在一个格子中含有多个检测对象这个时候的训练集标签可以是上图所示。\n",
    "\n",
    "其实出现这种情况的几率还是会比较小的，因为我们一般都会将图片分割成比较小的碎片，所以当用到的时候再看看吧。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "92ae69cc",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f1994052",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
